<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <title>layout 后台大布局 - Layui</title>
    <link rel="stylesheet" th:href="@{/layui/layui.css}" />
    <link rel="stylesheet" th:href="@{/css/index.css}"/>
    <link rel="stylesheet" th:href="@{/css/image.css}"/>
    <link rel="stylesheet" th:href="@{/css/indexq.css}"/>

    <script type="text/javascript" th:src="@{/js/jquery-3.2.1.js}"></script>
</head>
<body class="layui-layout-body ">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div><img src="image/tim.png" style="position: absolute;width: 50px; left:380px;top: 6px" /></div>
        <div ><img src="image/logop.png" style="width: 700px;margin-top: 10px;margin-left: 450px;"/></div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="image/yh.jpg" class="layui-nav-img" />
                    <span th:unless="${session.user eq null}" th:text="${session.user.getName()}"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a id="xtpd">个人资料</a></dd>
                    <dd><a id="xc">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/dor/loginout">退出登录</a></li>

        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">

                <li class="layui-nav-item layui-nav-itemed">
                    <a class="wen1" href="javascript:;"><i class="layui-icon ima1">&#xe60a;</i>公告</a>
                    <dl class="layui-nav-child">
                        <dd><a id="gonggao" class="wen">公告查看</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="wen1" href="javascript:;"><i class="layui-icon ima">&#xe612;</i>&nbsp;人员管理</a>
                    <dl class="layui-nav-child">
                        <dd><a id="xts" class="wen">学生管理</a></dd>
                        <dd><a id="ts" class="wen">宿管管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="wen1" href="javascript:;"><i class="layui-icon ima2">&#xe68e;</i>&nbsp;查寝情况</a>
                    <dl class="layui-nav-child">
                        <dd><a id="ws" class="wen">卫生情况</a></dd>
                        <dd><a id="weigui" class="wen">违规情况</a></dd>
                        <dd><a id="jifen" class="wen">积分管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="wen1" href="javascript:;"><i class="layui-icon ima3">&#xe62a;</i>&nbsp;&nbsp;投票</a>
                    <dl class="layui-nav-child">
                        <dd><a id="tq" class="wen">投票情况</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe id="indexbody"  width="100%" height="100%"></iframe>
    </div>

</div>
<script th:src="@{/layui/layui.all.js}"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });

    $(document).ready(function () {
        /** 跳转学生模块. */
        $('#xts').click(function () {
            $('#indexbody').attr('src', '/dor/xtStudent');
        });

        $('#todm').click(function () {
            $('#indexbody').attr('src', '/dor/dmdemo');
        });
        $('#gonggao').click(function() {
            $('#indexbody').attr('src','/dor/stuText')
        });
        $('#gongfa').click(function() {
            $('#indexbody').attr('src','/dor/Addtextdemo')
        });
        $('#weigui').click(function() {
            $('#indexbody').attr('src','/dor/xtRule')
        });
        $('#xtpd').click(function() {
            $('#indexbody').attr('src','/dor/xtPerson')
        });
        $('#xc').click(function() {
            $('#indexbody').attr('src','/dor/xtChange')
        });

        $('#indexbody').attr('src','/dor/indexdemo');

        $('#vote').click(function() {
            $('#indexbody').attr('src','/dor/vote')
        });
        $('#stuvote').click(function() {
            $('#indexbody').attr('src','/dor/stuVote')
        });
        $('#roomstu').click(function() {
            $('#indexbody').attr('src','/dor/roomStu')
        });
        $('#clastu').click(function() {
            $('#indexbody').attr('src','/dor/claStu')
        });
        $('#ts').click(function() {
            $('#indexbody').attr('src','/dor/teaSelect')
        });
        $('#tq').click(function() {
            $('#indexbody').attr('src','/dor/voteLook')
        });
        $('#ws').click(function() {
            $('#indexbody').attr('src','/dor/xtHea')
        });
        $('#jifen').click(function() {
            $('#indexbody').attr('src','/dor/xtJF')
        });
    });

</script>


</body>
</html>